package controller

import (
	"CampusCloudAid/logic"

	"github.com/gin-gonic/gin"
)

// Captcha
// @Summary 验证码接口
// @Produce json
// @Description 验证码接口
// @Tags 用户相关接口
// @Success 200 {object} ResponseData
// @router /api/v1/captcha [get]
func Captcha(c *gin.Context) {
	id, base64Image, _ := logic.CaptMake()
	ResponseSuccess(c, gin.H{
		"id_key": id, "image": base64Image,
	})

}
